package com.xsz.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.Date;
import java.util.List;
import java.util.Set;

/**
 *
 * @author Bsea
 *  简历
 *
 */
@Table(name="tb_resume")
@Entity
@Getter
@Setter
public class Resume {

    private static final long serialVersionUID = 1L;
    /**主键ID**/
    @Id
    @Column(length=60)
    private String id;

    /**名称**/
    @Column(length=60)
    private String name;
    /**创建时间**/
    private Date createDate;

    /**创建简历的求职用户Id**/
    private String createBy;

    @Column(length=90)
    /**简历下载地址**/
    private String address;

    @JsonIgnore
    @ManyToMany
    @JoinTable(name="TbPossitionResume",joinColumns={@JoinColumn(name="resumeId")},inverseJoinColumns={@JoinColumn(name="pid")})
    private Set<Possition> possitionList;// 一份简历，可以申请多个职位

}
